<!--
    Think.get.type == 1  选择模式  单先
-->

<neq name="Think.get.type" value="1">
    <div class="bjui-pageHeader">
        <div class="pull-right">
            <button class="btn-default" data-icon="plus" title="添加文本素材" data-toggle="tooltip" data-placement="left" onclick="createDialog('{:U("Wx/wx_text")}', '添加文本素材' , 'wx_text', {width:800, height:400})" ></button>
            <a href="{:U('Wx/del_wx_text')}" class="btn btn-default" data-toggle="doajaxchecked" data-icon="remove" data-callback="callbackRefres" data-confirm-msg="要删除全部选中的吗??" data-idname="id" data-group="ids"></a>
            <button class="btn-default" data-icon="refresh" onclick="$.CurrentNavtab.navtab('refresh')"></button>
        </div>
        <form id="pagerForm" data-toggle="ajaxsearch" data-loadingmask="true" action="{:U('text')}" method="post">
            <input type="hidden" name="pageSize" value="{:I('param.pageSize')}" />
            <input type="hidden" name="pageCurrent" value="{:I('param.pageCurrent')}" />
            <input type="hidden" name="orderField" value="{:I('param.orderField')}" />
            <input type="hidden" name="orderDirection" value="{:I('param.orderDirection')}" />
            <ul class="nav nav-tabs" role="tablist">
                <li class="active"><a href="javascript:void(0)" onclick="createNavtab('{:U("Wx/text")}', '微信素材库', 'wx_mat')" role="tab" data-toggle="tab">文本素材</a></li>
                <li class=""><a href="javascript:void(0)" onclick="createNavtab('{:U("Wx/imgtxt")}', '微信素材库', 'wx_mat')" role="tab" data-toggle="tab">图文素材</a></li>
                <li class=""><a href="javascript:void(0)" onclick="createNavtab('{:U("Wx/image")}', '微信素材库', 'wx_mat')" role="tab" data-toggle="tab">图片素材</a></li>
                <li class=""><a href="javascript:void(0)" onclick="createNavtab('{:U("Wx/voice")}', '微信素材库', 'wx_mat')" role="tab" data-toggle="tab">语音素材</a></li>
                <li class=""><a href="javascript:void(0)" onclick="createNavtab('{:U("Wx/video")}', '微信素材库', 'wx_mat')" role="tab" data-toggle="tab">视频素材</a></li>
            </ul>
        </form>
    </div>
</neq>
<div class="bjui-pageContent tableContent">
    <table class="table table-bordered table-hover table-striped table-top" data-selected-multi="false">
        <thead>
        <tr>
            <neq name="Think.get.type" value="1">
                <th width="26"><input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck"></th>
            </neq>
            <th>文本内容</th>
            <th>备注</th>
            <th>调用次数</th>
            <th width="100">操作</th>
        </tr>
        </thead>
        <tbody>
        <volist name="list" id="vo">
        <tr>
            <neq name="Think.get.type" value="1">
                <td width="26"><input type="checkbox" value="{$vo.id}" class="checkboxCtrl" name="ids" data-toggle="icheck"></td>
            </neq>
            <td>{$vo.text}</td>
            <td>{$vo.mark}</td>
            <td>{$vo.time}</td>
            <td>
                <eq name="Think.get.type" value="1">
                    <button type="button" class="btn-green" data-toggle="lookupback" data-args="{text_id:<php>echo $vo['id']</php>, text_show:'<php>echo $vo['text']</php>'}">选</button>
                <else />
                    <button type="button" class="btn-green" onclick="createDialog('{:U("Wx/wx_text",array("id"=>$vo["id"]))}', '修改文本素材' , 'wx_text', {width:800, height:400})">改</button>
                    <a href="{:U('Wx/del_wx_text',array('id'=>$vo['id']))}"  data-type="get" class="btn btn-red" data-toggle="doajax" data-confirm-msg="你确定要删除?" >删</a>
                </eq>
            </td>
        </tr>
        </volist>
        </tbody>
    </table>
</div>
<include file="Common/footer" ftype="page" />